/**
 * Copyright (C) Octlan Corporation. All rights reserved.
 * 
 * @author todzhang
 * @date 2010-2-24
 * @version $Id: StartupActivity.java 11 2010-03-03 06:44:06Z todzhang $
 */
package com.octlan.droid.mii;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.octlan.droid.mii.intent.BaseIntent;

public class StartupActivity extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.startup);
		addListeners();
	}

	private void addListeners() {
		((Button) findViewById(R.id.BtnTest)).setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				startActivity(new Intent(BaseIntent.ACTION_PEOPLE_LIST));
			}
		});

		((Button) findViewById(R.id.BtnSendSMS)).setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				startActivity(new Intent(BaseIntent.ACTION_SEND_SMS));
			}
		});

		((Button) findViewById(R.id.BtnContentTest)).setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				startActivity(new Intent(BaseIntent.ACTION_CONTENT_TEST));
			}
		});

	}
}
